package com.sdk.es.sdk.entity.base;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.sdk.es.sdk.constants.IndexConts;
import com.sdk.es.sdk.entity.common.EsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;

import java.time.LocalDateTime;

@Document(indexName = IndexConts.TEST1 + "_#{@esIndexNameGenerator.getYearMonthStr()}")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Test1 extends EsBaseEntity {

	private String str;

	private Long lon;

    private LocalDateTime dateTime;

    private Integer i;

    private Float f;

    private Short s;
}
